@echo on

REM Simple Windows Batch - Run Flask Directly
cd /d %~dp0

echo === SIMPLE FLASK STARTER ===

REM Create virtual environment
if not exist "venv" (
    echo Creating virtual environment...
    python -m venv venv
)

REM Activate and install dependencies
call venv\Scripts\activate.bat
pip install flask
pip install requests
pip install pandas

REM Set environment and run
set FLASK_APP=main.py
set FLASK_ENV=production

REM Run flask directly
python -m flask run --host=0.0.0.0 --port=8000